﻿#pragma once

#include <QWidget>
#include "ui_mainwindowh.h"
#include "robot_data.h"
class StateServer;
class MainWindowh : public QWidget
{
	Q_OBJECT

public:
	MainWindowh(QWidget *parent = nullptr);
	~MainWindowh();

	QByteArray CommandProcessor(const QByteArray& data);

private:
	bool InitState();
	QByteArray StateTransToByte();
private:
	Ui::MainWindowh ui;
	StateServer* m_state = nullptr;
	QThread* m_th;
	StateInfo  m_info = {};
};
